package com.lsismo.modules.permission.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;


@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)  
public class User implements Serializable{

	private static final long serialVersionUID = 3636711543243223124L;
	
		@Id
		@Column(name="ID", length=32)
		@GeneratedValue(generator="system-uuid")
		@GenericGenerator(name="system-uuid",strategy="uuid")
	    private String id;
	    private String username;
	    private String password;
		
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
	
}
